﻿@model EagleProject.LinQDataContext.CommonUser

@{
    ViewBag.Title = "Profile";
}

@Html.ActionLink("Change Profile", "ChangeProfile", "User")
<br/>
@Html.ActionLink("Change Password", "ChangePassword", "User")

<h2>Profile</h2>
<fieldset>
    <legend>Profile</legend>
    <ol>
        <li>
            <div class="tbl-first">User Name</div>
            <div class="tbl-next">@Model.Username</div>
            <div class="tbl-next">
            </div>
            <div class="clear"></div>
        </li>

        <li>
            <div class="tbl-first">Avatar</div>
            <div class="tbl-next">
                @if (Model.PictureUrl != null)
                {  
                    <img src="@Url.Content(Model.PictureUrl)"/>
                }
                else
                { 
                    <a>Avatar not set !</a>
                }
            </div>
            <div class="tbl-next">
            </div>
            <div class="clear"></div>
        </li>
    </ol>
</fieldset>
